/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-brand h1 {
    color: #333;
    font-size: 1.5rem;
}

.nav-menu a {
    color: #666;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ff6b6b;
    background-color: #fff5f5;
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-login {
    background-color: #ff6b6b;
    color: white;
    margin-right: 1rem;
}

.btn-register {
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

.btn-login:hover {
    background-color: #ff5252;
}

.btn-register:hover {
    background-color: #ff6b6b;
    color: white;
}

/* 主要内容区样式 */
.container {
    max-width: 1200px;
    margin: 80px auto 2rem;
    padding: 0 1rem;
}

/* 菜品网格布局 */
.dish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* 菜品卡片样式 */
.dish-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.dish-card:hover {
    transform: translateY(-5px);
}

.dish-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dish-info {
    padding: 1rem;
}

.dish-info h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.dish-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: #ff6b6b;
    font-size: 1.2rem;
    font-weight: bold;
}

.btn-detail {
    background-color: #ff6b6b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
}

.btn-detail:hover {
    background-color: #ff5252;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 2rem;
    background-color: #333;
    color: #fff;
} 